package cn.nebula.music.dao;

import java.sql.Date;
import java.util.List;
import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.Album;

@Repository
public interface AlbumDAO {
	public Album findAlbumById(Integer id);

	public Set<Album> findAlbumsByName(String name);

	public Set<Album> findAlbumsByHeat(Integer id);

	public Set<Album> findAlbumsByPublishTime(Date publisTime);

	public Set<Album> findAllAlbums();

	public Set<Album> findAllAlbumsOfBT();

	public Set<Album> findAllAlbumsWP();

	public List<Album> findNewAlbums();

	public Integer addAlbum(Album album);

	public Integer updateAlbum(Album album);

	public Integer deleteAlbumById(Integer id);
}
